import Vue from 'vue';
import App from './App.vue';
import router from './router';

Vue.config.productionTip = false;

let instance = null;
export async function bootstrap() {
  console.log('app bootstraped');
}
export async function mount(props) {
  instance = new Vue({
    el: '#app',
    router,
    render: h => h(App)
  });
}
export async function unmount() {
  instance.$destroy();
  instance = null;
}

if (!window.__POWERED_BY_QIANKUN__) {
  mount();
}
